﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class shop:NPC
    {
        private string goods;
        public string Goods
        {
            get { return this.goods; }
            set { this.goods = value; }
        }
        public shop(string name, NPCTypes npctypes, string goods) : base(name, npctypes)
        {
            this.goods = goods;
        }
        public override void Speak()
        {
            Console.WriteLine($"{this.Name}请问有什么需要的吗？我这里有{this.goods}");
            Console.WriteLine();
        }
    }
}
